package ex55.mm.flow.impound.quote.exchange.api;

public class SubscriptionOptions {

    private final String websocketFeed;

    private final boolean isAutoReconnect;

    private final Long receiveLimitMs;

    private int connectionDelayOnFailure = 15;

    public SubscriptionOptions(
            String websocketFeed,
            boolean isAutoReconnect, Long receiveLimitMs) {
        this.websocketFeed = websocketFeed;
        this.isAutoReconnect = isAutoReconnect;
        this.receiveLimitMs = receiveLimitMs;
    }

    public String getWebsocketFeed() {
        return websocketFeed;
    }

    public boolean isAutoReconnect() {
        return isAutoReconnect;
    }

    public Long getReceiveLimitMs() {
        return receiveLimitMs;
    }

    public int getConnectionDelayOnFailure() {
        return connectionDelayOnFailure;
    }
}
